<%@ page contentType="text/html; charset=UTF-8" pageEncoding="UTF-8"%>
<%@taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core"%>
<table title="tab2" border="1" style='border: 1px solid #aaa'
	cellspacing="0" cellpadding="10">
	<tr>
		<td>书名:</td>
		<td><input type="text" value="${bookinfo.title }" /></td>
		<td rowspan="8"><img
			src="../style/img/book_logo/${bookinfo.picPath}" /></td>
	</tr>
	<tr>
		<td><input type="text" value="${bookinfo.author }" /></td>
	</tr>
	<tr>
		<td>单价:</td>
		<td><input type="text" value="${bookinfo.unprice }" /></td>
	</tr>
	<tr>
		<td>出版社:</td>
		<td><input type="text" value="${bookinfo.publish.name }" /></td>
	</tr>
	<tr>
		<td>种类:</td>
		<td>
			<select id="CategorySelect">
				<c:forEach items="${bookCategory}" var="cty">
					<c:choose>
					       <c:when test="${bookinfo.category.name==cty.name}">
					            <option value="${cty.id}" selected = "selected">${cty.name}</option>
					       </c:when>
					       <c:otherwise>
					       		<option value="${cty.id}">${cty.name}</option>
					       </c:otherwise>
					</c:choose>
				</c:forEach>
			</select>
		</td>
	</tr>
	<tr>
		<td>出版时间:</td>
		<td><input type="text" value="${bookinfo.publishDate }" /></td>
	</tr>
	<tr>
		<td>ISBN:</td>
		<td><input type="text" value="${bookinfo.ISBN }" /></td>
	</tr>
	<tr>
		<td>字数:</td>
		<td><input type="text" value="${bookinfo.worldsCount }" /></td>
	</tr>
	<tr>
		<td><input type="submit" value="保存" /></td>
	</tr>
</table>

<div class="bookDescription">
	<h2>书评</h2>
	<input type="text" value="${bookinfo.editorComment}" />
</div>

<div class="contentDescription">
	<h2>内容简介</h2>
	<p>${bookinfo.contentDescription }</p>
</div>

<div class="authorDescription">
	<h2>作者简介</h2>
	<p>${bookinfo.authorDescription }</p>
</div>

<div class="toc">
	<h2>目录</h2>
	<p>${bookinfo.toc }</p>
</div>